package com.fengmi.service;

import com.fengmi.dto.PageDTO;
import com.fengmi.entity.SysPermission;
import com.fengmi.vo.CascadeVO;
import com.fengmi.vo.PageResultVO;
import com.fengmi.vo.ResultVO;

import java.util.List;

/**
 * @Author 123
 * @Date 2022/2/10 11:30
 * @Version 1.0
 */

public interface SysPermissionService {
    //分页条件查询所有权限
    public PageResultVO<SysPermission> findPermissionByPage(PageDTO<SysPermission> pageDTO);

    //查询权限级联效果
    public ResultVO selectPermissionCascade();

    //添加权限
    public ResultVO saveAddPermission(SysPermission sysPermission);

    //修改权限信息
    public ResultVO updatePermission(SysPermission sysPermission);

    //通过权限编号删除权限信息
    public ResultVO deletePermission(String permCode);
}
